CVE-2023-26123
Raylib Cross-Site Scripting (XSS) in SetClipboardText API
Description
Versions of the package raysan5/raylib before 4.5.0 are vulnerable to Cross-site Scripting (XSS) such that the SetClipboardText API does not properly escape the ' character, allowing attacker-controlled input to break out of the string and execute arbitrary JavaScript via emscripten_run_script function. **Note:** This vulnerability is present only when compiling raylib for PLATFORM_WEB. All the other Desktop/Mobile/Embedded platforms are not affected.
INFO
Published Date :
April 14, 2023, 5:15 a.m.
Last Modified :
Feb. 6, 2025, 9:15 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | [email protected] |
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-26123.
| URL | Resource |
|---|---|
| https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d | Patch |
| https://github.com/raysan5/raylib/issues/2954 | Exploit Issue Tracking Third Party Advisory |
| https://github.com/raysan5/raylib/releases/tag/4.5.0 | Release Notes |
| https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188 | Exploit Patch Third Party Advisory |
| https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d | Patch |
| https://github.com/raysan5/raylib/issues/2954 | Exploit Issue Tracking Third Party Advisory |
| https://github.com/raysan5/raylib/releases/tag/4.5.0 | Release Notes |
| https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188 | Exploit Patch Third Party Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-26123 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-26123
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-26123 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-26123 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Feb. 06, 2025
Action Type Old Value New Value Added CWE CWE-79 -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d Added Reference https://github.com/raysan5/raylib/issues/2954 Added Reference https://github.com/raysan5/raylib/releases/tag/4.5.0 Added Reference https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
CVE Modified by [email protected]
Nov. 07, 2023
Action Type Old Value New Value Added CWE Snyk CWE-79 -
Initial Analysis by [email protected]
Apr. 21, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N Changed Reference Type https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d No Types Assigned https://github.com/raysan5/raylib/commit/b436c8d7e5346a241b00511a11585936895d959d Patch Changed Reference Type https://github.com/raysan5/raylib/issues/2954 No Types Assigned https://github.com/raysan5/raylib/issues/2954 Exploit, Issue Tracking, Third Party Advisory Changed Reference Type https://github.com/raysan5/raylib/releases/tag/4.5.0 No Types Assigned https://github.com/raysan5/raylib/releases/tag/4.5.0 Release Notes Changed Reference Type https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188 No Types Assigned https://security.snyk.io/vuln/SNYK-UNMANAGED-RAYSAN5RAYLIB-5421188 Exploit, Patch, Third Party Advisory Added CWE NIST CWE-79 Added CPE Configuration OR *cpe:2.3:a:raylib:raylib:*:*:*:*:*:*:*:* versions up to (excluding) 4.5.0
Vulnerability Scoring Details
Base CVSS Score: 6.1
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.09 }} -0.18%
score
0.26828
percentile